package designpatterns.visitor;

// 具体访问者1
public class Visitor1 implements Visitor {
    @Override
    public void visit(Element1 element1) {
        System.out.println("Visitor1.visit===" + element1.operate1());
    }

    @Override
    public void visit(Element2 element2) {
        System.out.println("Visitor1.visit===" + element2.operate2());
    }
}
